package com.legendframework.core.cmd.annotation;

import java.lang.annotation.*;

/**
 * @Auther: ShallowDream7
 * @Date: 2019/5/3 00:08
 * @Description:
 */
@Target({ElementType.FIELD,ElementType.PARAMETER})
@Documented
@Retention(RetentionPolicy.RUNTIME)
public @interface CmdParam {
    /**
     * 参数标题信息
     *
     * @return
     */
    String title() default "";

    /**
     * 参数描述信息
     *
     * @return
     */
    String desc() default "";

    /**
     * 参数示例
     *
     * @return
     */
    String demo() default "";

    /**
     * 是否必须
     * @return
     */
    boolean required() default true;
}
